Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODMenuBar


RegisterCommand

Mac OS

The RegisterCommand method associates a command ID with the specified menu/menu item designation.

void RegisterCommand (in ODCommandID command,
                      in ODMenuID menu, 
                      in ODMenuItemID menuItem);
command
The command ID to be associated with the specified menu/menu item designation. On the Mac OS platform, the command ID is defined as a signed 32-bit value.
menu
A platform-specific identifier for a menu. On the Mac OS platform, the menu ID is defined as a signed 16-bit value.
menuItem
A platform-specific identifier for a menu item. On the Mac OS platform, the menu item ID is defined as a signed 16-bit value.
DISCUSSION
Command IDs above 20,000 are reserved for parts. If your part registers command IDs, it should use numbers greater than 20,000.

SEE ALSO
The ODCommandID type (page 895).
The ODMenuBar::UnregisterCommand method (page 410).
"Registering and Retrieving Command IDs" on page 242 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help